<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="UserDetails.aspx.cs" Inherits="UserDetails" Title="Untitled Page" %>

<%@ Register Src="UserControls/UsersZoneMenu.ascx" TagName="UsersZoneMenu" TagPrefix="uc2" %>

<%@ Register Src="UserControls/UserHeader.ascx" TagName="UserHeader" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
    <asp:LinkButton ID="lnkEdit" runat="server" OnClick="lnkEdit_Click">Edit</asp:LinkButton>
    <asp:LinkButton ID="lnkSave" runat="server" OnClick="lnkSave_Click">Save</asp:LinkButton>
    <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="False" OnClick="lnkCancel_Click">Cancel</asp:LinkButton>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phMain" Runat="Server">
    <uc1:UserHeader id="ucUserHeader" runat="server">
    </uc1:UserHeader>
    <asp:DetailsView ID="dvUser" runat="server" AutoGenerateRows="False" DataSourceID="dsUser" EmptyDataText="Sorry User has not been found." OnItemUpdated="dvUser_ItemUpdated" DataKeyNames="Id,ConcurencyId">
        <Fields>
            <asp:BoundField DataField="Created" HeaderText="Registered" ReadOnly="True"/>
            <acms:TextboxField DataField="UserName" HeaderText="UserName" Required="True" />
            <acms:TextboxField DataField="FirstName" HeaderText="FirstName" Required="True" />
            <acms:TextboxField DataField="LastName" HeaderText="LastName" Required="True" />
            <acms:DateField DataField="DateOfBirth" HeaderText="Date Of Birth" Required="True"/>
            <acms:TextboxField DataField="EmailAddress" HeaderText="EmailAddress" Required="True" Width="250px"/>
            <acms:TextboxField DataField="Address1" HeaderText="Address1" Required="True" Width="250px"/>
            <acms:TextboxField DataField="Address2" HeaderText="Address2" Width="250px"/>
            <acms:TextboxField DataField="Town" HeaderText="Town" Required="True" />
            <acms:TextboxField DataField="PostCode" HeaderText="PostCode" Required="True" />
            <acms:TextboxField DataField="MobileTel" HeaderText="MobileTel" Required="True"/>
        </Fields>
    </asp:DetailsView>
    <acms:UserDataSource ID="dsUser" runat="server" EnablePaging="False" OnSelectData="dsUser_SelectData" OnUpdatingData="dsUser_UpdatingData">
    </acms:UserDataSource>
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="phSubMenu">
    <uc2:UsersZoneMenu ID="UsersZoneMenu1" runat="server" />
</asp:Content>

